import request from "@/utils/request";
import { type Discuss } from "@/types/Discuss";
enum API {
    base_url = "/discuss",
    base_find = 'discuss/essayid'
}



export const add_discuss = (data: Discuss) => request({
    method: "post",
    url: API.base_url,
    data
})

export const get_discuss = (id: string) => request({
    method: "get",
    url: API.base_find + `/${id}`,

})

